package com.chenyongjing.design.pattern.strategy.promotion;

/**
 * 上下文，目的解决if额else的判断
 */
public class PromotionActivity {
    private IPromotionStrategy strategy;

    public PromotionActivity(IPromotionStrategy strategy){
        this.strategy= strategy;
    }

    public void execute(){
        strategy.doPromotion();
    }
}
